package com.happycat.mobile.model;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
/**
 * Module: UserOrder.java
 *
 * @author liaoyong
 * @since JDK 1.8
 * @version 1.0
 * @date 2020-08-01
 * @Descriptions:
 */
@Data
@TableName(value = "user_order")
@ApiModel
public class UserOrder  {
	
	

	@TableId(value = "id", type = IdType.INPUT)
	private Long id;
	
	@TableField("code")
	@ApiModelProperty(value="编号")
	private String code;
	
	@TableField("game_id")
	@ApiModelProperty(value="游戏id")
	private Long gameId;
	
	@TableField("booking_id")
	@ApiModelProperty(value="约玩用户id")
	private Long bookingId;
	
	@TableField("accompany_id")
	@ApiModelProperty(value="被约用户id")
	private Long accompanyId;
	
	@TableField("number")
	@ApiModelProperty(value="局数")
	private Integer number;
	
	@TableField("score")
	@ApiModelProperty(value="评分")
	private Float score;
	
	@ApiModelProperty(value="创建时间",example = "2020-01-01T12:18:48")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	
	@TableField("voucher_card_id")
	@ApiModelProperty(value="优惠券id")
	private Long voucherCardId;
	
	@TableField("region_id")
	@ApiModelProperty(value="平台大区id")
	private Long regionId;
	
	@TableField("total_price")
	@ApiModelProperty(value="合计")
	private Long totalPrice;
	
	@TableField("difference_price")
	@ApiModelProperty(value="差价猫粮")
	private Integer differencePrice;
	
	@TableField("paid_price")
	@ApiModelProperty(value="实付猫粮")
	private Integer paidPrice;
	
	@TableField("status")
	@ApiModelProperty(value="状态(1进行中，2已完成，3已取消)")
	private Integer status;
	
	@TableField("payment_method")
	@ApiModelProperty(value="支付方式")
	private String paymentMethod;
	
	@TableField("order_channel")
	@ApiModelProperty(value="下单渠道")
	private String orderChannel;
	
	@ApiModelProperty(value="支付时间",example = "2020-01-01T12:18:48")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date payTime;
	
	@ApiModelProperty(value="接单时间",example = "2020-01-01T12:18:48")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date orderTime;
	
	@TableField("order_income")
	@ApiModelProperty(value="订单收益")
	private Double orderIncome;
	
	@ApiModelProperty(value="取消时间",example = "2020-01-01T12:18:48")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date cancelTime;
	
	@TableField("cancel_by")
	@ApiModelProperty(value="取消人")
	private String cancelBy;
	
	@TableField("cancel_reason")
	@ApiModelProperty(value="取消原因")
	private String cancelReason;
	
}